package cn.jyszn.wxb.controller.mgr;

import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by yasser on 2016/8/8.
 */
@Controller
public class MgrMainController {
    /**
     * 日志记录对象
     */
    private Logger logger = LogManager.getLogger(this.getClass());

    @RequestMapping("/mgr/main")
    public String toMainView() {
        logger.info("用户访问了这个页面");
        return "index";
    }

    public static void main(String[] args) {
        Logger log = LogManager.getLogger(MgrMainController.class);
        log.info("用户访问了这个页面");
    }
}
